package com.lixun.passwordbook.util;

public class Jump {
    private static int PAUSE_TIME = 5000;
    private static long startTime;
    private static long endTime;



    public static boolean ifTrue(){
        if (getTime() >= PAUSE_TIME) {
            return true;
        } else {
            return false;
        }
    }

    public static int getTime(){
        return (int) Math.floor((endTime - startTime));
    }

    public static int getPauseTime() {
        return PAUSE_TIME;
    }

    public static void setPauseTime(int pauseTime) {
        PAUSE_TIME = pauseTime;
    }

    public static long getStartTime() {
        return startTime;
    }

    public static void setStartTime(long startTime) {
        Jump.startTime = startTime;;
    }

    public static long getEndTime() {
        return endTime;
    }

    public static void setEndTime() {
        Jump.endTime = System.currentTimeMillis();;
    }
}
